package com.eliza.databindadv

import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.widget.Button
import com.eliza.databindadv.activity.RecycleBindActivity
import com.eliza.databindadv.activity.TwoWayActivity

class MainActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)
        findViewById<Button>(R.id.main_to_twoway).setOnClickListener {
            startActivity(Intent(this, TwoWayActivity::class.java))
        }

        findViewById<Button>(R.id.main_to_databind_recycleVm).setOnClickListener {
            startActivity(Intent(this, RecycleBindActivity::class.java))
        }
    }
}